<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="/deng/include/include-css.js"></script>
<title>设备配置</title>
</head>
<body>
	<div class="m-portlet">
		<div class="m-portlet__head">
			<div class="m-portlet__head-caption">
				<div class="m-portlet__head-title">
					<span class="m-portlet__head-icon m--hide">
						<i class="la la-gear"></i>
					</span>
					<h3 class="m-portlet__head-text" id="deviceName">

					</h3>
				</div>
			</div>
		</div>
		<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="defaultForm" method="post">
			<div class="m-portlet__body">
				<div class="form-group m-form__group row" style="display:none;">
					<label class="col-md-1 col-form-label">主键</label>
					<div class="col-md-3">
						<input class="form-control" type="hidden" maxlength="32"  name="device_id" id='device_id' placeholder="请输入">
						<input class="form-control" type="hidden" name="device_config_id" id='device_config_id' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">ip&nbsp;地&nbsp;&nbsp;址</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="64"  name="ip" id='ip' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">端&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;口</label>
					<div class="col-md-3">
						<input class="form-control" maxlength="10"  data-bv-numeric data-bv-numeric-message="此项为数字类型"  name="port" id='port' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">用&nbsp;户&nbsp;&nbsp;名</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="32"  name="user_name" id='user_name' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="32"  name="password" id='password' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">通信协议</label>
					<div class="col-md-2">
						<select class="form-control" maxlength="20"  name="protocol" id='protocol' placeholder="请输入">
							<option value="">请选择</option>
							<option value="TCP">TCP</option>
							<option value="UDP">UDP</option>
							<option value="RTU">RTU</option>
							<option value="ASCII">ASCII</option>
							<option value="HTTP">HTTP</option>
						</select>
					</div>
				</div>
				<div class="form-group m-form__group m--margin-top-10">
					<div class="alert m-alert m-alert--default" role="alert">
						以下配置为： <code>摄像机</code> 配置信息
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">厂商类型</label>
					<div class="col-md-2">
						<select type="text" class="form-control" name="type" id="type" placeholder="请选择">
							<option value="">请选择</option>
							<option value="0">海康</option>
							<option value="1">大华</option>
							<option value="2">宇视</option>
						</select>
					</div>
					<label class="col-md-1 col-form-label">码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;流</label>
					<div class="col-md-1">
						<select type="text" class="form-control" name="subtype" id="subtype" placeholder="请选择">
							<option value="">请选择</option>
							<option value="0">主码流</option>
							<option value="1">子码流</option>
							<option value="2">辅码流</option>
						</select>
					</div>
					<label class="col-md-1 col-form-label">rtsp通道号</label>
					<div class="col-md-1">
						<input class="form-control" maxlength="10"  data-bv-numeric data-bv-numeric-message="此项为数字类型"  name="channel_no" id='channel_no' placeholder="请输入rtsp通道号">
					</div>
					<label class="col-md-1 col-form-label">rtsp端口</label>
					<div class="col-md-1">
						<input class="form-control" maxlength="10"  data-bv-numeric data-bv-numeric-message="此项为数字类型"  name="rtsp_port" id='rtsp_port' placeholder="请输入">
					</div>
					<label class="col-md-1 col-form-label" title="存储服务器通道号">nvr通道号</label>
					<div class="col-md-1">
						<input class="form-control" maxlength="10"  data-bv-numeric data-bv-numeric-message="此项为数字类型"  name="nvr_channel" id='nvr_channel' placeholder="请输入nvr通道号">
					</div>
				</div>
			</div>
			<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
				<div class="m-form__actions m-form__actions--solid">
					<div class="form-group m-form__group row">
						<div class="col m--align-left">
							<a class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:updateIotDeviceConfig()">保存</a>
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:goback()">返回</a>
						</div>
						<div class="col m--align-right">
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:resetAll('defaultForm')"><span><i class="fa fa-repeat"></i><span>重置</span></span></a>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/view/monitor/iot-device-config/iot-device-config-update.js"></script> 
</html>
